<script>
  import { mapState, mapGetters } from 'vuex'
	export default {
    computed: {
      ...mapState('m_cart', ['cart']),
      ...mapGetters('m_cart', ['checkedCount']),
      
    },
		onLaunch: function() {
		},
		onShow: function() {
			if(this.cart.length !== 0 && this.checkedCount === 0) return uni.$showMsg('购物车有商品哦');
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: #ffffff;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
